class AmountType < ActiveRecord::Base
  set_table_name :product_amount_types

  paginates_per 15

  has_paper_trail
  diff :exclude => [:id]
  
  validates :name, :presentation, :length => {:maximum => 15}, :presence => true
  validates :name, :uniqueness => true
  
  has_many :products
end